// TOWN DIALOGUE SCRIPT
//    Town 59: Defiled Crypt

begintalkscript;

variables;

short i,j,k,r1,choice;

// Bohen-Ihrno

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 1;
	question = "Bohen-Ihrno";
	text1 = "A vahnatai rises and bows deeply to you. _I am being pleased to see you. I am named Bohen-Ihrno._";
	text2 = "She can speak your tongue, but awkwardly. You know that the word 'Ihrno' marks her as a wise person among her people.";
	text5 = "Bohen-Ihrno was studying a pile of thin mica sheets covered with intricate writing. She sets aside here stylus so that she can keep talking to you.";
	action = INTRO;

begintalknode;
	state = 1;
	nextstate = 2;
	condition = gf(59,11) == 0;
	question = "_I am surprised to see vahnatai here._";
	text1 = "_I am being pleased you be having you here. We knowing Avernites were up here but not expecting them to be visiting this site._";
	action = SET_SDF 59 11 1;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(59,11) >= 1;
	question = "_What do you think of Avernites returning to the surface?_";
	text1 = "_We having much pleasure in allies returning to the surface. Was Avernum spies who were detecting this site and reporting so we visit._";

begintalknode;
	state = 1;
	nextstate = 3;
	condition = gf(59,11) >= 1;
	question = "_What is this place?_";
	text1 = "_Being a great mystery. Is a vahnatai ruin, yes, but being at surface of world where our people thought to never be being. Is greatly ancient, greatly interesting._";

begintalknode;
	state = 3;
	nextstate = 4;
	question = "_Do you have any clues to what this place is for?_";
	text1 = "_Know nothing more so far. Vahnatai having great need to know of our ancestors. Them being here is great thing we wanting to be knowing._";
	text2 = "Alas, there is a problem. If you are helping us, perhaps we can be rewarding._";

begintalknode;
	state = 4;
	nextstate = 1;
	condition = gf(59,8) == 0;
	question = "_I would like to help._";
	code =
		run_hardcode(162);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(59,8) >= 2;
	question = "_When will you depart?_";
	action = END_TALK;
	code =
		run_hardcode(163);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(59,8) >= 1 && gf(59,13) > 0;
	question = "_I've explored the crypt a bit._";
	code =
		run_hardcode(162);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = gf(59,11) >= 1;
	question = "_Aren't you worried about the monster plagues?_";
	text1 = "_No. None of them coming here. Living things stay from here._";

begintalknode;
	state = 1;
	nextstate = 6;
	condition = gf(41,7) > 0;
	question = "_Did you know the vahnatai are the cause of the monster plagues?_";
	text1 = "Bohen-Ihrno is suddenly very agitated. She jumps to her feet. _Is not true. Not true._";


begintalknode;
	state = 6;
	nextstate = 1;
	condition = 1;
	question = "_Oh. Sorry. Never mind._";
	text1 = "The vahnatai calms down. _Do not say again. Very upsetting. Not thing to say._";


begintalknode;
	state = 6;
	nextstate = 1;
	condition = 1;
	question = "_I know it is true. Did you know of this?_";
	text1 = "_So sad. So very sad. Did not wanting. Did not help doing. Still our fight. Still must be done._";
	action = END_TALK;
	code =
		set_attitude(5915,10);
		set_attitude(5916,10);
	break;

begintalknode;
	state = 1;
	nextstate = -1;
	condition = 1;
	question = "_I'll be going now._";
	text1 = "_Having the luck!_";
	action = END_TALK;
	
// Abra

begintalknode;
	tag = 60;
	state = -1;
	nextstate = 29;
	question = "Abra";
	text1 = "You meet a vahnatai. That is very strange, considering that they rarely ever leave their deep caverns. He looks extremely ill, as if being near the surface doesn't agree with him. He coughs. _I am Abra._";
	text5 = "Abra looks down at you weakly. Like all vahnatai, he is extremely tall and thin. He only remains standing with difficulty.";
	action = INTRO;

begintalknode;
	state = 29;
	nextstate = 30;
	question = "_Are you unwell?_ ";
	text1 = "He looks at you. His eyes are glazed over. _I and Bohen do missions for our people. At times, we go where it makes us weak._";

begintalknode;
	state = 30;
	nextstate = 31;
	question = "_What sort of missions do you do with Bohen?_";
	text1 = "_For many years, she and I have been going from place to place, reviving sleeping vahnatai, killing chitrachs, and such. But this mission has been being the worst._ He has the usual strange vahnatai syntax when speaking, and his voice is weak.";

begintalknode;
	state = 31;
	nextstate = -1;
	question = "_Reviving sleeping vahnatai?_";
	text1 = "_Every few centuries, vahnatai hibernate to let our caves replenish ourselves. A few years ago, our clan's hibernation ended, and we went to help revive our people._";
	text2 = "_In fact, a few humans aided us on one such occasion. They were the first humans to be visiting our lands! Was being a great honor._";

begintalknode;
	state = 31;
	nextstate = -1;
	question = "_Where have chitrachs been a problem?_";
	text1 = "_Chitrachs live in our caves, and are always being pests. Sometimes, they must be controlled._";

begintalknode;
	state = 31;
	nextstate = 32;
	question = "_Why is this mission the worst?_";
	text1 = "_The surface is awful, no place for us. Worse, we want to find what is in these caves, but there are many monsters._";

begintalknode;
	state = 32;
	nextstate = -1;
	question = "_What about the surface disagrees with you?_";
	text1 = "_The heat! The lack of pressure in the air! The oddness of the sky. We cannot go outside, because your sun burns. Every moment is a difficulty. We wish to return home._";

begintalknode;
	state = 32;
	nextstate = 33;
	question = "_What sort of monsters occupy this crypt?_";
	text1 = "_Vahnavoi and Hraithes, vahnatai evil undead, who must have been in these ruins for the many centuries they have been here._";
	text2 = "_We don't know who made this place, but we suspect it was for the imprisonment of dark souls. But we will not know without someone helping us._";

begintalknode;
	state = 33;
	nextstate = -1;
	question = "_Can I help you figure out the purpose of this place?_";
	text1 = "_Speak to Bohen of that. We cannot fight the monsters ourselves, but you might._";

begintalknode;
	state = 29;
	nextstate = -1;
	question = "_Can I help you?_";
	text1 = "_Speak with Bohen-Ihrno. She is doing our dealing._ He wavers slightly on his long, thin legs.";

begintalknode;
	state = 29;
	nextstate = -1;
	condition = gf(41,7) > 0;
	question = "_Did you know the vahnatai are the cause of the monster plagues?_";
	text1 = "Abra is barely listening. _Talk to Bohen-Ihrno. Does our dealing._";
